<div id='leftcol'>
	
		<?php echo link_to('Manage Products', array('controller' => 'staff', 'action' => 'product')); ?>
		<br />
		<?php echo link_to('Manage Playgroundequipment', array('controller' => 'staff', 'action' => 'playgroundEquipment')); ?>
	
</div>
	<!--<link href='/24/only_2_m/stylesheets/staff_main.css' rel='stylesheet' media='all' type='text/css' title='default' />
	<link href='/24/only_2_m/stylesheets/staff/product.css' rel='stylesheet' media='all' type='text/c-->
<div id='rightcol'>

</div>
<div id='centercol'>

	<h2>All Play Ground Equipments</h2>


	<?php render_in_table_advanced($this->playgroundequipments, 'staff', 'playgroundEquipment', array('created_at', 'created_by', 'updated_at', 'updated_by')); ?>
	

	<h3><?php echo (ID) ?  'Edit Playgroundequipment' : 'New Playgroundequipment'; ?></h3>

	<?php 
		start_form_tag('staff/playgroundEquipment/' . ID);

		label('playgroundequipment', 'name');
		text_field('playgroundequipment', 'name');
	
		label('playgroundequipment', 'parent');
		$opts_arr = array('0-1' => 'None');
		foreach($this->playgroundequipments as $eqp) { $opts_arr['0' . $eqp->id] = $eqp->name; }
		select('playgroundequipment', 'parent_id', $opts_arr);

		
		(ID) ? submit_tag('Edit') : submit_tag('New');
	
		if (ID) { link_to('Cancel', array('controller' => 'staff', 'action' => 'playgroundEquipment')); }

		end_form_tag();
	?>

</div>

